package org.wesc.boot.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.wesc.boot.dao.entity.Notice;

import java.util.List;

/**
 * <p>
 * 系统通告表 Mapper 接口
 * </p>
 *
 * @author Wesley
 * @since 2021-03-29
 */
@Repository
public interface NoticeMapper extends BaseMapper<Notice> {

    /**
     * 查询用户未读的通告
     *
     * @param userId userId
     * @return 通告list
     */
    List<Notice> queryUnreadListByUserId(@Param("userId") String userId);

}
